package skdemo;
import java.io.*;
import java.net.InetAddress;
import java.net.Socket;

public class SKDemoClient {
    public static void main(String agrS[]) throws Exception
    {
       SKDemoClient abc=new SKDemoClient();
       abc.run();
    }
    public void run() throws Exception
    {
        Socket SOCK=new Socket(InetAddress.getLocalHost(),1993);
        PrintStream PS=new PrintStream(SOCK.getOutputStream());
        PS.println("CHAO!");
       PS=new PrintStream(SOCK.getOutputStream());
        PS.println("CHAO!");
        InputStreamReader ISR=new InputStreamReader(SOCK.getInputStream());
        BufferedReader BR=new BufferedReader(ISR);
        String MESSAGE=BR.readLine();
        System.out.println(MESSAGE); 
   }
    
}
